﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SqlSettings.aspx.cs" Inherits="HaiFang.SqlSettings" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>数据库连接配置</title>
        <link href="Styles/Settings.css" type="text/css" rel="stylesheet" />		
	</head>
	<body>
		<form id="SqlSettings" method="post" runat="server">
			<table style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-REPEAT: repeat-x; height:100%; width:100%;background-image: url(Styles/images/install_05.jpg)"  
            cellspacing="0" cellpadding="0"  border="0">
				<tr style="height:10px">
					<td><img src="Styles/images/install_01.jpg" alt=""/></td>
					<td style="HEIGHT: 15px;background-image: url(Styles/images/install_02.jpg)" width="100%" ></td>
					<td style="HEIGHT: 15px"><img src="Styles/images/install_03.jpg" alt=""/></td>
				</tr>
				<tr style="vertical-align:top; height:100%">
					<td style="BACKGROUND-POSITION: left bottom; BACKGROUND-REPEAT: no-repeat;background-image: url(Styles/images/install_04.jpg)" align="center"
					  colspan="3">
						<table style="height:100%;" cellspacing="0" cellpadding="0" width="100%" border="0">
							<tr style="vertical-align:top;">
								<td height="50"style="vertical-align:bottom;" align="center"><img src="Styles/images/install_sql.gif" alt=""/></td>
							</tr>
							<tr style="vertical-align:top; ">
								<td align="center"><br/>
									<table cellspacing="0" cellpadding="0" width="550" border="0">
										<tr>
											<td align="right" height="30" width="250"><img alt="" src="Styles/images/Icon2.gif"/>&nbsp;<asp:label id="lblServer" runat="server" Width="65px">服务器名</asp:label>:</td>
											<td align="left" height="30" width="300"><asp:textbox id="txtServer" runat="server" Width="130px"></asp:textbox></td>
										</tr>
										<tr>
											<td align="right" height="30"><img alt="" src="Styles/images/Icon2.gif"/>&nbsp;<asp:label id="lblServer_User" runat="server" Width="65px">用户</asp:label>:</td>
											<td align="left" height="30"><asp:textbox id="txtSqlUser" runat="server" Width="130px"></asp:textbox></td>
										</tr>
										<tr>
											<td align="right" height="30"><img alt="" src="Styles/images/Icon2.gif"/>&nbsp;<asp:label id="lblServer_Pswd" runat="server" Width="65px">密码</asp:label>:</td>
											<td align="left" height="30"><asp:textbox id="txtSqlPswd" runat="server" Width="130px" TextMode="Password"></asp:textbox><asp:textbox id="txtPwdHide" style="DISPLAY: none" runat="server"></asp:textbox></td>
										</tr>
										<tr>
											<td align="right" height="30"><img alt="" src="Styles/images/Icon2.gif"/>&nbsp;<asp:label id="lblDataBase" runat="server" Width="65px">数据库名</asp:label>:</td>
											<td align="left" height="30"><asp:textbox id="txtDbName" runat="server" Width="130px"></asp:textbox>
												</td>
										</tr>
										<tr>
											<td colspan="2" height="20" style="HEIGHT: 20px" align="center">
												<asp:label id="lblMsg" runat="server" ForeColor="Red" Width="500px"></asp:label>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center">
                                            <asp:button id="btnConn" OnClick="btnConn_Click" runat="server" Width="102px" Text="连接测试" CssClass="Button"></asp:button>
                                                &nbsp;&nbsp;
												<asp:button id="btnSave" OnClick="btnSave_Click" runat="server" CssClass="button" Text="保存"></asp:button>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
